#include "thread_pool.hpp"
#include "Task.hpp"
#include <cstdlib>
#include <ctime>
#include <string>

using namespace ns_task;
using namespace ns_pthreadpool;

int main()
{
    ThreadPool<Task>* tp = new ThreadPool<Task>;
    tp->InitThreadPool();
    srand((long long)time(nullptr));
    while(true)
    {
        int x,y;
        std::string ops("+-*/%") ;
        char op;
        x = rand()%20+1;
        y = rand()%20+1;
        op = ops[rand()%5];
        Task t(x,y,op);
        tp->PushTask(t);
    }
    return 0;
}